package org.social;

import org.social.config.SocialConfig;

import com.sojoys.artifact.core.IServer;
import org.social.db.DbSave;

public class Bootstrap {
	public static void main(String[] args) {
//		shutdownHook();
		IServer.setIConfig(new SocialConfig());
		IServer.start();
	}

//	private static void shutdownHook(){
//		Runtime.getRuntime().addShutdownHook(new Thread(()->{
//			try {
//				DbSave.saveAll();
//			} catch (Exception e) {
//				e.printStackTrace();
//			}
//		}));
//	}
}
